
string SqlString = "Update mssn Set time= ?, temperature= ? WHERE ID= '" + TextBox1.Text + "'";
using (OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\saccs.mdb"))
{
  using (OleDbCommand cmd = new OleDbCommand(SqlString, conn))
  {
    cmd.CommandType = CommandType.Text;
    cmd.Parameters.AddWithValue("time", TextBox3.Text);
    cmd.Parameters.AddWithValue("temperature", TextBox4.Text);
    conn.Open();
    cmd.ExecuteNonQuery();
  }
}




// Create a command object, give it a connection object, give it a query to update our database where name equals 'John'
            OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\saccs.mdb");
            connection.Open();
     OleDbCommand cmd = new OleDbCommand();
    cmd.Connection = connection;
     cmd.CommandText = " UPDATE MSSN SET TIME='" + TextBox3.Text + "', TEMPERATURE='" + TextBox3.Text + "' WHERE id='" + TextBox1.Text + "';";
     // Now simply execute it!
     cmd.ExecuteNonQuery();